package org.qiyu.live.user.provider.Service;

import org.apache.rocketmq.client.exception.MQBrokerException;
import org.apache.rocketmq.client.exception.MQClientException;
import org.apache.rocketmq.remoting.exception.RemotingException;
import org.qiyu.live.user.dto.UserDTO;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: IUserService
 * @Description: TODO
 * @Author zhangguangyan
 * @Date 2023/07/23/ 15:15:05
 * @Version 1.0
 */
public interface IUserService {
    /**
     * 根据用户id进行查询
     *
     * @param userId
     * @return
     */
    UserDTO getByUserId(Long userId);


    /**
     * 用户信息更新
     *
     * @param userDTO
     * @return
     */
    boolean updateUserInfo(UserDTO userDTO) throws MQBrokerException, RemotingException, InterruptedException, MQClientException;

    /**
     * 插入用户信息
     *
     * @param userDTO
     * @return
     */
    boolean insertOne(UserDTO userDTO);

     Map<Long,UserDTO> batchQueryUserInfo(List<Long> userIdList);
}
